package tt.com.common.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
/**
 * 用户权限
 */
public enum RoleEnum implements IEnum<Integer> {
    ROLE_MANAGER(1, "管理员"),
    ROLE_DRIVER(2, "司机");

   private Integer value;
   private String roleName;

    @Override
    public Integer getValue() {
        return value;
    }
}
